package cn.bonoon.controllers.announcement;

import cn.bonoon.kernel.annotations.Transform;
import cn.bonoon.kernel.support.models.ObjectEditor;
import cn.bonoon.kernel.web.annotations.components.AsComboBox;
import cn.bonoon.kernel.web.annotations.components.AsEditor;
import cn.bonoon.kernel.web.annotations.components.AsSelector;
import cn.bonoon.kernel.web.annotations.form.FormEditor;
import cn.bonoon.kernel.web.annotations.form.PropertyEditor;

@Transform
@FormEditor(value = 2, width = 250)
public class AnnouncementEditor extends ObjectEditor implements AnnouncementDefine {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1242616601977241807L;

	@PropertyEditor(value = 0, required = true)
	@AsComboBox(value = "/s/common/modules/items.do")
	private String key;

	@PropertyEditor(value = 1)
	@AsSelector(title = "")
	private int type;

	@PropertyEditor(value = 2, colspan = 1)
	@AsEditor
	private String content;

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

}
